/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package marifnst.jse71.working_with_inheritance;

/**
 *
 * @author arifnasution
 */
public class Driver
{
    public static void main(String args[])
    {
        Parent parent = new Child();
        parent.parentVoid();
        
        Child child = new Child();
        child.parentVoid();       
        child.childVoid();
        
        Child_2 child_2 = new Child_2();
        child_2.parentVoid();       
        child_2.childVoid();
    }
}
